import request from '@/utils/request'
// ---wt(system->sys)
// 字典类型列表
export function listType(query) {
  return request({
    url: '/sys/enterpriseDictTypeApi/list',
    method: 'post',
    params: query
  })
}

// 查询字典类型详细
export function getType(dictId) {
  return request({
    url: '/sys/enterpriseDictTypeApi/get/' + dictId,
    method: 'get'
  })
}

// 新增字典类型
export function addType(data) {
  return request({
    url: '/sys/enterpriseDictTypeApi/add',
    method: 'post',
    params: data
  })
}

// 修改字典类型
export function updateType(data) {
  return request({
    url: '/sys/enterpriseDictTypeApi/update',
    method: 'post',
    params: data
  })
}

// 删除字典类型
export function delType(dictId) {
  const data = {
    'ids': dictId
  }
  return request({
    url: '/sys/enterpriseDictTypeApi/remove',
    method: 'post',
    params: data
  })
}

